package com.bawei.a2209_mianshi

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.bawei.a2209_mianshi.utils.ToastUtils
import com.bawei.a2209_mianshi.widget.verify.VerifyCodeItemView
import com.bawei.a2209_mianshi.widget.verify.VerifyCodeView

class MainActivity : AppCompatActivity() {

    private lateinit var codeView: VerifyCodeView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        enableEdgeToEdge()
        setContentView(R.layout.activity_main2)
        codeView = findViewById(R.id.code_view)

        codeView.setOnInputVerifyCodeCompleted { it->
            ToastUtils.showLong(this, it)
        }

    }
}